2.16.6 This section comprises the subsections Description, Used AT Commands, Flow Chart, Hints and Examples. To move to these subsections please use the Navigation Frame or the appropriate buttons on the toolbar.
2.16.6.1
• Some Siemens modules allow to use the Internet Services of in parallel (i.e. they can be executed independently of each other), provided that they are running on the same connection profile.
• At the moment there is the possibility to use internet services in two different modes: URC and polling mode.
The “AT^SCFG=Tcp/WithURCs” can be used to enable/disable the URCs (i.e. switching between URC mode and polling mode.)
• In the URC mode the progress of an Internet session is URC driven. The URCs notify the host whether data can be sent or received, whether data transfer has completed, whether the service can be closed or wheter an error has occurred. This mechanism eliminates the need to poll the services until the necessary progress information is received. The service opens successfully, the URCs “^SISW” and “^SISR” will trigger the action to follow, either writing data with AT^SISW or reading data with AT^SISR. If the URCs notify that a data transfer has been finished successfuly (“^SISR: x,2” or “^SISW:x,2”), the service can be closed with AT^SISC. If a special event occurs, e.g. an error or warning, after opening or while using a service than the URC type “^SIS” will be delivered. Multiple read/write transfers might be necessary to transfer the required data. In this case, the possibility to send a new write command is signalled by the “^SISW” URC. Read commands can be issued either after an “^SISR” URC or if the <cfReadLength> parameter has been equal to the <reqReadLength> parameter.
• In the polling mode, the presentation of URCs related to Internet Services disabled.The host is responsible to retrieve all the status information needed for controlling the Internet session. This is done by polling, where the host application keeps sending the commands AT^SISR, AT^SISW, AT^SISI. In the polling mode the asynchronous “^SIS” URC occur only by the socket listener service and only with the <urcCause> parameter equals 1 or 2.
• The concept of non-blocking interface, mentioned in Section 2.16.2.1 allows to execute any AT commands during the opened internet service on the same Interface.(see Figure 151). This example shows the execution of the AT+CMEE command during Internet Services data transfer.
2.16.6.2
2.16.6.3 Figure 151: Read/Write Data URC Mode (Binary Mode).Figure 152: Upload (Polling mode).Figure 153: Download (Polling mode).
• Following flow chart shows an example of the data download or upload by Socket (here upload and download possible in one session).Figure 154: Socket (Polling mode).
2.16.6.3.1
• Figure 155: FTP GETFigure 156: FTP PUT (Polling mode).Figure 157: SMTP (URC mode).Figure 158: SMTP (Polling mode).
2.16.6.3.2 Figure 159: POP3 (URC mode).
2.16.6.3.3
• Figure 160: Socket Client UDP (URC mode).
• The following example describes the socket client connection to the 9999 port of the socket listener via TCP in the URC mode.Figure 161: Socket Client and Listener TCP (URC Mode).
• The following example describes the socket client connection to the 9999 port of the socket listener via TCP in the Polling mode.Figure 162: Socket Client and Listener TCP (Polling Mode).
2.16.6.3.4 Figure 163: HTTP (URC mode).
2.16.6.4
• FTP PUT uses only the write command (AT^SISW) (see the following example). It can be executed in binarymode or interactive text mode (for details see Chapter 1.8 in [2] and Figure 160). FTP GET uses only the read command (AT^SISR).
• It isn’t possible to upload an already existing file. The file is created by executing the FTP service (see the following example).
• Defining/activating and using the listener service depends on the network provider. Not all allow the usage of the service.(e.g. firewalls)
2.16.6.5
2.16.6.5.1
2.16.6.5.2
2.16.6.5.3
2.16.6.5.4
2.16.6.5.5 Subscr 1 Receive: <title> Wireless Modules - Application Engineering </title>Subscr 1 Receive: font-family:Arial,sans-serif; background-color:white;}Subscr 1 Receive: h1 { font-size:24px; color:white; background-color:rgb(2,0,153); padding-top:25px;Subscr 1 Receive: <h1>Subscr 1 Receive: Wireless Modules - Application EngineeringSubscr 1 Receive: </h1>Subscr 1 Receive: <div class="i1">Subscr 1 Receive: <a href="/appl/"><img src="titel.jpg" alt="title image"></a><br>Subscr 1 Receive: Application samples with <a href="http://www.siemens.com/wm"Subscr 1 Receive: </div>Subscr 1 Receive: <div class="i2">Subscr 1 Receive: Click on the image to go to the application samples.<br>Subscr 1 Receive: </div>
|